package com.huaxin.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.device.dto.ResponseResult;
import com.huaxin.device.dto.request.ElectricalWellCreateReqDTO;
import com.huaxin.device.dto.request.ElectricalWellPageListReqDTO;
import com.huaxin.device.dto.request.ElectricalWellUpdateReqDTO;
import com.huaxin.device.models.ElectricalWell;

public interface ElectricalWellService extends IService<ElectricalWell> {

    /**
     * 创建电井
     */
    ResponseResult<ElectricalWell> create(ElectricalWellCreateReqDTO in);

    /**
     * 获取电井
     */
    ElectricalWell getByWellId(String id);

    /**
     * 更新电井
     */
    ResponseResult<String> update(ElectricalWellUpdateReqDTO in);

    /**
     * 删除电井
     */
    ResponseResult<String> delete(String id);

    /**
     * 分页查询电井
     */
    ResponseResult<IPage<ElectricalWell>> pageQuery(ElectricalWellPageListReqDTO in);
}